package com.crm.model.vo.customerManager;

import com.crm.model.entity.customerManager.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ Author ：baijian
 * @ Date   ：2021/5/14 14:43
 */
@Data
public class DetailMemberCardVO {

    private String customerProductDetailMemberCardId;

    private String qrcode;

    private String memberProductCode;

    private String finishOrderProductNum;

    private String memberCardNumber;

    private String memberCardPassword;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date startTm;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date endTm;

    private BigDecimal productPrice;

    private String createPeopleId;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTm;

    private String updatePeopleId;

    private Date updateTm;

    private String accountId;

    private String customerId;

    private String customerName;

    private String contractId;

    private String contractNumber;

    private String productOrderId;

    private String orderNumber;

    private String memberCardId;

    private String companyId;

    private String phone;

    private String bz;

    private Integer dataSource;

    private Integer memberErrorData;

    private Integer master;

    private Short deleteStatus;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date orderCompleteTm;  //订单完成时间

    /**
     * @descripe
     *    会员卡名称(【会员产品表:chs_customer_member_product】)
     * @author yincuimei(2021-12-17)
     */
    private String memberCardName;

    public String  getMemberCardName(){
        if("会员到款增额".equals(memberCardName)){//会员卡名称为会员到款增额的不显示卡种
            return "";
        }
        return memberCardName;
    }
}
